package com.ossjk.qlh.system.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModelProperty;

/**
 *  
 * 
 * @author chair
 * @since 2020-07-12
 */
public class Findpwd extends Model<Findpwd> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@ApiModelProperty(value = "id", required = true)
	@TableId("id")
	private String id;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	@TableField("uid")
	private String uid;
	/**
	 * 验证码
	 */
	@ApiModelProperty(value = "验证码")
	@TableField("code")
	private String code;
	/**
	 * 失效时间
	 */
	@ApiModelProperty(value = "失效时间")
	@TableField("duration")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date duration;
	 
	public String  getId() {
		return id;
	}
	public void  setId(String id) {
		this.id = id;
	}
	public String  getUid() {
		return uid;
	}
	public void  setUid(String uid) {
		this.uid = uid;
	}
	public String  getCode() {
		return code;
	}
	public void  setCode(String code) {
		this.code = code;
	}
	public Date  getDuration() {
		return duration;
	}
	public void  setDuration(Date duration) {
		this.duration = duration;
	}
	 
	 
	@Override
	protected Serializable pkVal() {
		return null;
	}

	@Override
	public String toString() {
		return "Findpwd ["
	+"id=" + id +","
	+"uid=" + uid +","
	+"code=" + code +","
	+"duration=" + duration 
	+ "]";
	}

	 
}
